Skip to content

Commit 555a603

Browse files
committed
v6.35
- Clarify documentation for decoded_content (GH#166) (Eric Wastl)
1 parent 0218e83 commit 555a603

3 files changed

Lines changed: 13 additions & 7 deletions

File tree

Changes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Revision history for HTTP-Message
22

3-
{{$NEXT}}
3+
6.35 2021-11-11 22:10:31Z
44
- Clarify documentation for decoded_content (GH#166) (Eric Wastl)
55

66
6.34 2021-11-08 14:27:36Z

META.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"x_IRC" : "irc://irc.perl.org/#lwp",
109109
"x_MailingList" : "mailto:libwww@perl.org"
110110
},
111-
"version" : "6.34",
111+
"version" : "6.35",
112112
"x_Dist_Zilla" : {
113113
"perl" : {
114114
"version" : "5.030002"
@@ -615,7 +615,7 @@
615615
"branch" : null,
616616
"changelog" : "Changes",
617617
"signed" : 0,
618-
"tag" : "v6.34",
618+
"tag" : "v6.35",
619619
"tag_format" : "v%V",
620620
"tag_message" : "v%V"
621621
},
@@ -827,6 +827,7 @@
827827
"DAVIDRW <davidrw@cpan.org>",
828828
"David Steinbrunner <dsteinbrunner@MountainBook-Pro.local>",
829829
"Dorian Taylor <dorian.taylor.lists@gmail.com>",
830+
"Eric Wastl <topaz.github@lt3.us>",
830831
"Father Chrysostomos <sprout@cpan.org>",
831832
"Felipe Gasper <felipe@felipegasper.com>",
832833
"FWILES <FWILES@cpan.org>",

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ HTTP::Message - HTTP style message (base class)
44

55
# VERSION
66

7-
version 6.34
7+
version 6.35
88

99
# SYNOPSIS
1010

@@ -101,9 +101,14 @@ The following methods are available:
101101

102102
- $mess->decoded\_content( %options )
103103

104-
Returns the content with any `Content-Encoding` undone and for textual content
105-
the raw content encoded to Perl's Unicode strings. If the `Content-Encoding`
106-
or `charset` of the message is unknown this method will fail by returning
104+
Returns the content with any `Content-Encoding` undone and, for textual content
105+
(`Content-Type` values starting with `text/`, exactly matching
106+
`application/xml`, or ending with `+xml`), the raw content's character set
107+
decoded into Perl's Unicode string format. Note that this
108+
[does not currently](https://github.com/libwww-perl/HTTP-Message/pull/99)
109+
attempt to decode declared character sets for any other content types like
110+
`application/json` or `application/javascript`. If the `Content-Encoding`
111+
or `charset` of the message is unknown, this method will fail by returning
107112
`undef`.
108113

109114
The following options can be specified.

0 commit comments

Comments
 (0)