Skip to content

Commit

Permalink
Merge pull request pallets#208 from SimonSapin/patch-4
Browse files Browse the repository at this point in the history
Change the example in parse_options_header
  • Loading branch information
Kenneth Reitz committed Oct 24, 2012
2 parents a5d2883 + 5128769 commit 3f1206e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions werkzeug/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ def parse_options_header(value):
"""Parse a ``Content-Type`` like header into a tuple with the content
type and the options:
>>> parse_options_header('Content-Type: text/html; mimetype=text/html')
('Content-Type:', {'mimetype': 'text/html'})
>>> parse_options_header('text/html; charset=utf8')
('text/html', {'charset': 'utf8'})
This should not be used to parse ``Cache-Control`` like headers that use
a slightly different format. For these headers use the
Expand Down

0 comments on commit 3f1206e

Please sign in to comment.