Issues

ZF2-156: HTTP 308 Resume Incomplete missing in Zend\Http\Response

Issue Type: Improvement Created: 2012-02-08T19:12:33.000+0000 Last Updated: 2012-10-08T20:15:29.000+0000 Status: Closed Fix version(s): Reporter: zfChannel (zfchannel) Assignee: Ralph Schindler (ralph) Tags: - Zend\Http

Related issues: Attachments:

Description

Zend\Http\Response is missing a constant for HTTP 308 Resume Incomplete. When trying to set this status code, it will throw an Exception.

The solution is to add the following line to the list of constants: const STATUS_CODE_308 = 308;

This status code is used by Google Docs to upload files, so it might be a good addition.

Comments

Posted by Shahar Evron (shahar) on 2012-02-09T05:55:26.000+0000

The right solution for this is that Zend\Http\Response (as well as Request and Client) should stop validating things like status codes, method names etc. using a white-list of possible values, and switch to using the rules specified in the HTTP RFC. The RFC does allow not only codes like 308 but basically any 3-digit custom status codes are allowed.

I am working to change these in my Zend\Http rewrite branch, but this branch also includes a host of other major changes so I do not consider it a fix for this bug, at least not until it is decided to fully merge this branch (if at all).

Posted by Ralph Schindler (ralph) on 2012-10-08T20:15:29.000+0000

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: https://github.com/zendframework/zf2/issues/2454

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts