Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

content-disposition support #55

Merged
merged 3 commits into from Sep 4, 2014
Merged

content-disposition support #55

merged 3 commits into from Sep 4, 2014

Conversation

plicease
Copy link
Contributor

@plicease plicease commented Sep 3, 2014

Here is my cleaned up version of #27 up for consideration.

  1. I removed some of the white space change to make the PR easier to read
  2. added a test
  3. support both unadorned filenames (as given by github) and quoted filenames as specified in the spec

The regexen that I have employed probably are not exhaustive, but they probably address most of the actual use cases out there in practice. Note that there is a conflict with #24, so maybe that PR could add some abstraction so that we don't have to special case every interaction with the response object/hash.

I vote for the inclusion of this PR: aye.

@mohawk2
Copy link
Contributor

mohawk2 commented Sep 3, 2014

Aye - @zmughal, one other?

@zmughal
Copy link
Member

zmughal commented Sep 3, 2014

Good that the regex is searchable with m/content-disposition/i if it needs to be modified later. And if someone is escaping things like quotes in source tarball names, we have more problems than just the parsing. ;-)

Have you tested this with Alien::LibYAML?

Merge: Aye

@mohawk2
Copy link
Contributor

mohawk2 commented Sep 3, 2014

@plicease, please merge as soon as you're happy (sounds like @zmughal's question is a good one).

@plicease
Copy link
Contributor Author

plicease commented Sep 4, 2014

Alien::LibYAML works.

@jberger
Copy link
Member

jberger commented Sep 4, 2014

Belatedly 👍

zmughal added a commit to zmughal/p5-Alien-Base that referenced this pull request Sep 4, 2014
Conflicts:
	lib/Alien/Base/ModuleBuild/Repository/HTTP.pm

This merges the changes between Perl5-Alien#24 and Perl5-Alien#55. See Perl5-Alien#56.

Merging of [commit](https://github.com/plicease/Alien-Base/commit/a15536c804b9738ae3d45cd9a23ca427855c8927)
by @plicease which adds header support for both LWP and HTTP::Tiny. This
is needed for getting Content-Disposition information.
@plicease plicease deleted the content_dis branch September 4, 2014 11:48
@plicease plicease restored the content_dis branch September 4, 2014 11:48
@plicease plicease deleted the content_dis branch September 4, 2014 14:43
plicease added a commit that referenced this pull request Jul 17, 2017
content-disposition support
plicease pushed a commit that referenced this pull request Jul 17, 2017
Conflicts:
	lib/Alien/Base/ModuleBuild/Repository/HTTP.pm

This merges the changes between #24 and #55. See #56.

Merging of [commit](https://github.com/plicease/Alien-Base/commit/a15536c804b9738ae3d45cd9a23ca427855c8927)
by @plicease which adds header support for both LWP and HTTP::Tiny. This
is needed for getting Content-Disposition information.
plicease added a commit that referenced this pull request Jul 17, 2017
content-disposition support
plicease pushed a commit that referenced this pull request Jul 17, 2017
Conflicts:
	lib/Alien/Base/ModuleBuild/Repository/HTTP.pm

This merges the changes between #24 and #55. See #56.

Merging of [commit](https://github.com/plicease/Alien-Base/commit/a15536c804b9738ae3d45cd9a23ca427855c8927)
by @plicease which adds header support for both LWP and HTTP::Tiny. This
is needed for getting Content-Disposition information.
plicease added a commit that referenced this pull request Jul 17, 2017
content-disposition support
plicease pushed a commit that referenced this pull request Jul 17, 2017
Conflicts:
	lib/Alien/Base/ModuleBuild/Repository/HTTP.pm

This merges the changes between #24 and #55. See #56.

Merging of [commit](https://github.com/plicease/Alien-Base/commit/a15536c804b9738ae3d45cd9a23ca427855c8927)
by @plicease which adds header support for both LWP and HTTP::Tiny. This
is needed for getting Content-Disposition information.
plicease added a commit that referenced this pull request Jul 17, 2017
content-disposition support
plicease pushed a commit that referenced this pull request Jul 17, 2017
Conflicts:
	lib/Alien/Base/ModuleBuild/Repository/HTTP.pm

This merges the changes between #24 and #55. See #56.

Merging of [commit](https://github.com/plicease/Alien-Base/commit/a15536c804b9738ae3d45cd9a23ca427855c8927)
by @plicease which adds header support for both LWP and HTTP::Tiny. This
is needed for getting Content-Disposition information.
plicease added a commit that referenced this pull request Jul 17, 2017
content-disposition support
plicease pushed a commit that referenced this pull request Jul 17, 2017
Conflicts:
	lib/Alien/Base/ModuleBuild/Repository/HTTP.pm

This merges the changes between #24 and #55. See #56.

Merging of [commit](https://github.com/plicease/Alien-Base/commit/a15536c804b9738ae3d45cd9a23ca427855c8927)
by @plicease which adds header support for both LWP and HTTP::Tiny. This
is needed for getting Content-Disposition information.
plicease added a commit that referenced this pull request Jul 17, 2017
Alien-Base: 
Alien-Base: content-disposition support
plicease pushed a commit that referenced this pull request Jul 17, 2017
… plicease/lwp

Alien-Base: 
Alien-Base: Conflicts:
Alien-Base: 	lib/Alien/Base/ModuleBuild/Repository/HTTP.pm
Alien-Base: 
Alien-Base: This merges the changes between #24 and #55. See #56.
Alien-Base: 
Alien-Base: Merging of [commit](https://github.com/plicease/Alien-Base/commit/a15536c804b9738ae3d45cd9a23ca427855c8927)
Alien-Base: by @plicease which adds header support for both LWP and HTTP::Tiny. This
Alien-Base: is needed for getting Content-Disposition information.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants