8000 Minor fixes · adamchainz/python-raml-codec@df07441 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit df07441

Browse files
committed
Minor fixes
1 parent 20fef3e commit df07441

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

raml_codec/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class RAMLCodec(BaseCodec):
7979

8080
def decode(self, bytestring, **options):
8181
base_url = options.get('base_url', None)
82-
loader = URLRAMLLoader(base_url)
82+
loader = RAMLLoader(base_url)
8383
data = loader.load(bytestring)
8484
config = setup_config()
8585
raml = parse_raml(data, config)
@@ -112,6 +112,7 @@ def decode(self, bytestring, **options):
112112
link = coreapi.Link(
113113
url=resource.absolute_uri,
114114
action=resource.method.lower(),
115+
encoding=encoding,
115116
fields=fields
116117
)
117118
content[resource.display_name] = link

0 commit comments

Comments
 (0)
0