Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[now-python] Fix headers with multiple values #3053

Merged
merged 5 commits into from Sep 20, 2019
Merged

Conversation

styfle
Copy link
Member

@styfle styfle commented Sep 20, 2019

Fixes #3051

I updated all three possible interfaces:

  • handler
  • wsgi
  • asgi

I swapped requests for the built-in http.client because I found that requests does something a little strange: it combines multiple keys into a dictionary with a CSV value which I believe is incorrect so I use my format_headers() instead which will use an array/list for the value.

@styfle styfle marked this pull request as ready for review September 20, 2019 20:10
@codecov-io
Copy link

Codecov Report

Merging #3053 into canary will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           canary    #3053      +/-   ##
==========================================
+ Coverage   13.46%   13.47%   +0.01%     
==========================================
  Files         267      267              
  Lines       10296    10300       +4     
  Branches     1211     1212       +1     
==========================================
+ Hits         1386     1388       +2     
- Misses       8848     8850       +2     
  Partials       62       62
Impacted Files Coverage Δ
src/util/dev/builder.ts 76.92% <0%> (-0.5%) ⬇️
src/util/dev/server.ts 66.43% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ddce654...5d00815. Read the comment docs.

@kodiakhq kodiakhq bot merged commit 0814bef into canary Sep 20, 2019
@kodiakhq kodiakhq bot deleted the python-headers branch September 20, 2019 21:55
styfle added a commit that referenced this pull request Sep 30, 2019
* [now-python] Add format_headers()

* Add tests

* Fix filenames

* Fix test probes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Django login is broken only with now dev
3 participants