Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Max-age exception when using https (could be the same as #95 ?) #118

Closed
jeop10 opened this issue Mar 12, 2017 · 2 comments
Closed

Max-age exception when using https (could be the same as #95 ?) #118

jeop10 opened this issue Mar 12, 2017 · 2 comments

Comments

@jeop10
Copy link

jeop10 commented Mar 12, 2017

Hello I have been playing with the zend-feed with zend-http (release-2.6.0) library to read some feeds on the internet, and it all goes well until I change the domain of the feed to go with https instead of http. Then I receive this error message

[Zend\Http\Header\Exception\InvalidArgumentException] Invalid Max-Age number specified

From the little debug I did I manage to find that when setting the Max-Age a null value is given to this function, therefore a exception is thrown. But I can't seem to go any deeper to know why exactly this null value is given.

It's the same outcome described here #95

In order to fix the issue with the zend-feed I just use the function

Reader::importRemoteFeed

Which give me option to pass it a custom http client.

Hope this help a little and sorry about my bad english.

@jeop10 jeop10 changed the title Max-age exception when using https (coudl be the same as #95 ?) Max-age exception when using https (could be the same as #95 ?) Mar 14, 2017
@samsonasik
Copy link
Contributor

I've create PR #120 for it

@Xerkus
Copy link
Member

Xerkus commented Oct 13, 2017

Duplicate of #95

@Xerkus Xerkus marked this as a duplicate of #95 Oct 13, 2017
@Xerkus Xerkus closed this as completed Oct 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants