diff options
| author | Joe Gregorio <jcgregorio@google.com> | 2011-06-22 16:55:52 -0400 |
|---|---|---|
| committer | Joe Gregorio <jcgregorio@google.com> | 2011-06-22 16:55:52 -0400 |
| commit | 03d9910cc44e33ae7a325189b0f9d4d6f16e4875 (patch) | |
| tree | 8d8fbb06c251bd448f0590681d79248922de5bdc /python2/httplib2 | |
| parent | 2149bbfe16b9fc813ad4f32bc582aaa50e5fa58f (diff) | |
| download | httplib2-03d9910cc44e33ae7a325189b0f9d4d6f16e4875.tar.gz | |
Added (optional) opaque support to DigestAuth
Reviewed in http://codereview.appspot.com/4661044/
Diffstat (limited to 'python2/httplib2')
| -rw-r--r-- | python2/httplib2/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python2/httplib2/__init__.py b/python2/httplib2/__init__.py index f894ee2..f210130 100644 --- a/python2/httplib2/__init__.py +++ b/python2/httplib2/__init__.py @@ -530,6 +530,8 @@ class DigestAuthentication(Authentication): self.challenge['nc'], self.challenge['cnonce'], ) + if self.challenge.get('opaque'): + headers['authorization'] += ', opaque="%s"' % self.challenge['opaque'] self.challenge['nc'] += 1 def response(self, response, content): |
