diff --git a/lib/codegen/julia/http.dart b/lib/codegen/julia/http.dart index 0ee167b6..44fba04d 100644 --- a/lib/codegen/julia/http.dart +++ b/lib/codegen/julia/http.dart @@ -31,15 +31,14 @@ params = Dict( """; String kTemplateHeaders = """ -{% set new_params = headers | replace(":", "=>") | replace("{", "(") | replace("}", ")") %} - -headers = Dict{{new_params}} +headers = Dict( +{%- for name, value in headers %} + "{{ name }}" => "{{ value }}", +{%- endfor %} +) +\n """; - String kTemplateFormHeaderContentType = ''' -multipart/form-data; boundary={{boundary}}'''; - - int kHeadersPadding = 10; String kTemplateRequest = """