[VW 7.5] [Bug] PatchManager>>downloadBytesFrom:

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

[VW 7.5] [Bug] PatchManager>>downloadBytesFrom:

Stew MacLean

PatchManager>>downloadBytesFrom: fileUrl

 

            "Override to register downloadDone: with the protocol interpreter.

            Required as a result of architecture changes in VW 7.5. 10/06/07 SIM."

 

            | client response |

            NotifyingHttpBuildHandler when: #downloadStarted: send: #downloadStarted: to: self.

            client := NotifyingHttpClient new.

            client clientPI when: #downloadDone: send: #downloadDone: to: self.

            client decodeContents: false.

            [response := client get: fileUrl] on: self class netExceptions

                        do:

                                    [:ex |

                                    self logError: ex.

                                    self cleanupEvents: client.

                                    ^false].

            self cleanupEvents: client.

            ^true