Skip to content

Conversation

@jorgelamb
Copy link

Hi,

First: good job with the addon, very useful :)

I've added a new feature we needed to modify headers in a fork I created. It allows a new configuration parameter for each header, and only if the pattern matches the url it will apply the header change.

The commit includes a couple of commits with the following changes:

  • pattern feature
  • build script updated to new xpidl scripts
  • it also modifies source code indentation to use always tabs. it was mixing spaces and tab and my editor changed all of them...

Regards,
Jorge

Jorge Alvaro added 2 commits August 2, 2013 10:05
- Pattern is an optional field for a new header. If it's not set then the header will be sent for every request
- Pattern is checked as a regular expression with the request url. It automatically adds .* before and after the configured pattern, so you can configure a string that if contained in the url will make it include the header.

Configuration example:
	pattern=example.com -> header set for requests like http://example.com and http://www.example.com, not sent for http://lamboratory.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant