Skip to content

Commit

Permalink
Back out using subject; reinstate header_name
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Jun 27, 2012
1 parent a68c333 commit 6d15701
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions redbot/headers/content_base.py
Expand Up @@ -32,6 +32,7 @@
def parse(subject, value, red):
red.set_message(subject,
rs.HEADER_DEPRECATED,
header_name="Content-Base",
ref=rh.rfc2616 % "sec-19.6.3"
)
return value
Expand Down
1 change: 1 addition & 0 deletions redbot/headers/set_cookie2.py
Expand Up @@ -32,6 +32,7 @@
def parse(subject, value, red):
red.set_message(subject,
rs.HEADER_DEPRECATED,
header_name="Set-Cookie2",
ref=rh.rfc6265 % "section-9.4"
)
return value
Expand Down
2 changes: 1 addition & 1 deletion redbot/speak.py
Expand Up @@ -204,7 +204,7 @@ class HEADER_DEPRECATED(Message):
category = c.GENERAL
level = l.WARN
summary = {
'en': u"The %(subject)s header is deprecated."
'en': u"The %(header_name)s header is deprecated."
}
text = {
'en': u"""This header field is no longer recommended for use, because of
Expand Down
1 change: 0 additions & 1 deletion redbot/state.py
Expand Up @@ -111,7 +111,6 @@ def set_message(self, subject, msg, subreq=None, **kw):
kw['response'] = rs.response.get(
self.type, rs.response['this']
)['en']
kw['subject'] = subject
self.messages.append(msg(subject, subreq, kw))

@staticmethod
Expand Down

0 comments on commit 6d15701

Please sign in to comment.