The Trunk: WebClient-Core-topa.108.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: WebClient-Core-topa.108.mcz

commits-2
Tobias Pape uploaded a new version of WebClient-Core to project The Trunk:
http://source.squeak.org/trunk/WebClient-Core-topa.108.mcz

==================== Summary ====================

Name: WebClient-Core-topa.108
Author: topa
Time: 6 July 2017, 12:07:14.128141 pm
UUID: a3d7bd67-cc07-43e5-b05a-2f0c3e9d1fa5
Ancestors: WebClient-Core-topa.107

fix encoding/converter ordering.
Thanks Max Leske

=============== Diff against WebClient-Core-topa.107 ===============

Item was changed:
  ----- Method: WebMessage>>getContentWithProgress: (in category 'private') -----
  getContentWithProgress: progressBlockOrNil
  "Reads available content and returns it."
 
  | length result |
  length := self contentLength.
  result := (stream isBinary ifTrue:[ ByteArray ] ifFalse: [ ByteString ])
  new: (length ifNil: [ 1000 ])
  streamContents: [ :outputStream |
  self
  streamFrom: stream
  to: outputStream
  size: length
  progress: progressBlockOrNil ].
+ (self headerAt: 'content-encoding') = 'gzip' ifTrue: [
+ result :=  (GZipReadStream on: result) upToEnd].
  self textConverterForContentType ifNotNil: [:converter |
  result := result convertFromWithConverter: converter].
+ ^ result
- (self headerAt: 'content-encoding') = 'gzip' ifFalse: [ ^result ].
- ^(GZipReadStream on: result) upToEnd
  !