Comments (4)
Can you show what change you made to NewMultiPartRequest?
You added this?
// Set session cookie if there is one
if c.session != nil {
for _, cookie := range c.session.Cookies {
req.AddCookie(cookie)
}
}
Did you leave in this ?
// Set session cookie if there is one
if c.Authentication.Authenticated() {
req.Header.Set("Cookie", fmt.Sprintf("%s=%s", c.session.Session.Name, c.session.Session.Value))
}
Cheers!
Jason
from go-jira.
Exactly that, I didn't leave the part you specified here, just replaced
with the first part.
Thanks.
On Fri, Jul 22, 2016, 20:33 jasonob [email protected] wrote:
Can you show what change you made to NewMultiPartRequest?
You added this?
// Set session cookie if there is one
if c.session != nil {
for _, cookie := range c.session.Cookies {
req.AddCookie(cookie)
}
}Did you leave in this ?
// Set session cookie if there is one
if c.Authentication.Authenticated() {
req.Header.Set("Cookie", fmt.Sprintf("%s=%s", c.session.Session.Name,
c.session.Session.Value))
}Cheers!
Jason
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#25 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB5KjkLp2hIqUhOIisRHdCVnbt0EozgMks5qYQzjgaJpZM4JSy2N
.
from go-jira.
Looks good to me
Can you submit a pull request to Andy?
Thanks!
Jason
from go-jira.
Thank you @jasonob and @antekresic.
This make me smile and this is open source for me!
I love it when someone push something, other people start using it and once an issue occured the community helps each other. This is just great.
Thank you for this. You made my day.
from go-jira.
Related Issues (20)
- GetTransition not work HOT 1
- RemoveWatcher throws 400 error due to missing query parameter
- Creating issue with go-jira/v2/cloud failed with status code 400 HOT 2
- PUT request fails even though json is correct HOT 3
- Calling the GetWatchers() function results in a stacktrace HOT 1
- `IssueFields.Unknowns` and `IssueFields.Names` not returned in `Issue.SearchWithContext` api HOT 1
- Use Personal Access Tokens instead of username and password HOT 2
- Add support for retrying failed requests HOT 1
- issue field creator json tag is wrong HOT 2
- FieldsValue need more types to be accepted
- When accountId=="", it will cause service panic
- Unable to install go-jira on apple M1 laptop HOT 1
- Add support in rest/api/3/issue HOT 2
- Reading from a closed body in case of a network error during body read
- Support POST version for long JQL queries
- IssueLinkType Name not found
- Add method for get priority schema by project ID
- Cloud: Issue.DownloadAttachment is using deprecated API
- Adding comments to issues won't work
- Support for Assets and Asset Query Language (AQL)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-jira.