Commit Graph

74 Commits

Author SHA1 Message Date
Tom Longhurst
4ca8f1cd2c fix: "zip" Content-Type resulting in null Stream for Artifacts on Blob Storage (#2905) 2024-04-15 09:28:10 -05:00
Tom Longhurst
889bf25979 feat/fix: Allow zip MIME type (#2902)
Not a standard MIME type but see issue #2898
2024-04-10 15:32:18 -05:00
Tom Longhurst
958bc5f1f8 [feat]: SDKs for ActionsArtifacts APIs 2023-09-25 14:16:41 -05:00
gitasaurus
3c82ff359c [FEAT] Adds support for enterprise audit logs 2023-05-09 10:28:58 -05:00
Chris Simpson
176bf386a0 maint: Tidying up DefineConstants (#2538) 2022-08-12 12:19:26 -05:00
Jose de Jesus Medina
66a6781584 spellcheck round 2 (#2259) 2020-10-06 09:47:36 -03:00
Brendan Forster
08e7c14ced drop unused code related to PORTABLE flag (#2202) 2020-06-08 08:33:27 -03:00
Fredrik Høisæther Rasch
af74ae8e20 Add Server Time Difference to ApiInfo (#2196) 2020-06-07 18:25:34 -03:00
Cédric Luthi
69d118230d Add support to get raw file content as byte[] (#2151) 2020-04-12 13:22:35 -03:00
Ryan Gribble
6385e2dcbd Don't apply Tls1.2 workaround when .NET 4.7 SystemDefault is set (#1936)
* Dont touch SecurityProtocol if current value is new SystemDefault added in .NET 4.7
Add comment to explain what we are doing

* Update Octokit/Http/HttpClientAdapter.cs

Co-Authored-By: ryangribble <ryangribble@users.noreply.github.com>

* Update Octokit/Http/HttpClientAdapter.cs

Co-Authored-By: ryangribble <ryangribble@users.noreply.github.com>

* Update Octokit/Http/HttpClientAdapter.cs

Co-Authored-By: ryangribble <ryangribble@users.noreply.github.com>

* Update Octokit/Http/HttpClientAdapter.cs

Co-Authored-By: ryangribble <ryangribble@users.noreply.github.com>
2019-02-27 21:30:42 +10:00
Itai Bar-Haim
4e804f61a6 Prefer using nameof(x) over literal "x" (#1781)
* updated XML docs and added some missing bits.

* prefer nameof(x) over literal "x"
2018-03-07 20:43:10 +10:00
Ryan Gribble
b35b60f24c Add TLS1.2 to enabled security protocols (.NET Framework 4.5 only) (#1758)
* Add Tls1.2 to allowed protocols, for earlier target frameworks where this wasnt already the default.
ServicePointManager class used to do this, is only available in the full framework, so a preprocessor constant needs to be used

* intergration tests net452 target wasn't setup

* Use OR Assignment operator, just for Haacked
2018-02-14 00:30:25 +10:00
Philippe Miossec
c8ff57b24c Add possibility to configure GitHubClient timeout (#963) (#1693)
* Add possibility to configure GitHubClient timeout (#963)

A first attempt to fix the problem describe in #963 by adding a possibility
to extend the default timeout value (100s)
that is too short to be able to post assets in github release.

* Rename to SetRequestTimeout
Make comments consistent
2017-10-29 10:51:37 +10:00
zzzprojects
82dfabefa7 Fixing Async Deadlock
Adding missing ConfigureAwait + put on single line await &
ConfigureAwait
2016-10-03 11:24:07 -04:00
Martin Scholz
5b9e23c2fb Fix timeout getting multiple repositories (#1411)
* add test

* [WIP]

* put logic for redirects outside of delegating handler

* change send method

* format code

* reorganized http client adapter

* change HttpClientAdapter

* rework http redirect tests - still an issue with accessing the response.RequestMessage.Content property as it is disposed

* remove some unused lines in httpclientadapter

* Reworked redirect implementation to fully clone http request and re-use it later
Now the skipped test from #874 works!
Also had to fix the new ReturnsRenamedRepository test as the ionide repo was renamed again
2016-08-15 06:57:50 +10:00
Brendan Forster
5b3d540207 a couple of other usages found 2016-04-06 20:26:59 -04:00
Brendan Forster
a6c21e8649 one more internal usage to configure 2016-04-06 20:17:57 -04:00
Brendan Forster
c5600ce37b and a couple more awaits for necessary internals 2016-04-06 20:10:20 -04:00
aedampir@gmail.com
6133210b97 Inconsistent modifiers declaration order was fixed. 2016-03-22 19:13:24 +07:00
Mordechai Zuber
44304ca70b use string per recommended style 2015-12-16 21:23:36 +02:00
Haacked
f3f7161017 🔥 Remove redundant this qualifier 2015-12-13 22:22:54 -08:00
Brendan Forster
80719c0033 aaaand format the code 2015-11-04 13:38:51 -08:00
Naveen
aa44aa0da5 Fixed the spacing
Fixed the spacing of comma and aligned the arguments.
2015-10-21 10:06:06 -04:00
Naveen
1886629e6f Fixes for Downloading ReleaseAsset zip File #854
This commit  addressed the `BuildResponse`  wasn't handling
response `content-type` `application/octet-stream` for binary items.
2015-10-16 14:29:43 -04:00
Phil Haack
8e77f00d00 🎨 Minor formatting changes 2015-07-17 10:24:17 -07:00
Brendan Forster
442bbb43cd throw an error if the redirect count has been exceeded 2015-06-05 16:11:46 +09:30
Brendan Forster
51947adc6d added another exclusion for detecting binary content 2015-06-01 07:49:24 +09:30
Brendan Forster
3acdd10be4 deprecate the optional AllowAutoRedirect parameter 2015-05-31 22:44:41 +09:30
Brendan Forster
3c32814de7 💄 2015-05-31 19:34:43 +09:30
Brendan Forster
d551eb296e internalize this for now 2015-05-31 19:30:13 +09:30
Brendan Forster
549ff92461 a bit more cleanup 2015-05-31 19:27:47 +09:30
Brendan Forster
e5e4b4c8b0 extracting all the cross-platform setup of HttpMessageHandler into
a less awful class
2015-05-31 19:23:39 +09:30
Brendan Forster
5d0c8d6679 get the portable tests back running by muting all these methods that don't exist 2015-05-31 18:58:00 +09:30
Darrel
ea9f3a4761 Fixed issues with RedirectHandler and added tests 2015-05-31 18:08:37 +09:30
Brendan Forster
eb7e14bd8c test hacks for great good 2015-05-22 20:45:59 +09:30
Brendan Forster
894609e7d9 missed a supresssion 2015-05-22 17:11:21 +09:30
Brendan Forster
f0011ccce7 missed an overload 2015-05-22 17:09:07 +09:30
Brendan Forster
4d77f0eee1 suppressing a bunch of stuff because murtaugh's law 2015-05-22 17:03:21 +09:30
Brendan Forster
7f95f55d47 massaging and fighting with fxcop 2015-05-22 16:46:24 +09:30
Darrel
14fe8bcbcd First attempt to reuse HttpClient 2015-05-22 16:33:48 +09:30
Brendan Forster
b51598d8b1 run the specific checks first for known binary content 2015-05-08 18:25:58 +09:30
Brendan Forster
288839543d 💄 moving things 2015-05-08 17:59:28 +09:30
Brendan Forster
a9abd0942e move address generation into message setup 2015-05-08 17:56:42 +09:30
Brendan Forster
fc8319cc33 define a cancellation token for the request 2015-05-08 17:56:41 +09:30
csware
c710c46676 Allow to download zip-attachments
Fixes issue #784.
2015-04-27 18:58:09 +02:00
Haacked
cf27bf510a It's only a Type, not a Type Type 2015-01-16 14:40:04 -08:00
Haacked
aace9902b9 Make IResponse.ContentType readonly 2015-01-04 19:13:34 -08:00
Haacked
ff3506f3e8 Make some of the IResponse properties readonly 2015-01-04 19:13:32 -08:00
Haacked
53a6516de2 Change IResponse.Body to object
This removes the awkward Body and BodyAsObject property combo we used to
have.
2015-01-04 19:06:50 -08:00
Haacked
49f95d40f1 Remove Type parameter for IHttpClient send method
This keeps the IHttpClient interface simpler and ensures the
deserialization responsibility lies outside of that class. It only
needed the Type parameter for a special case that could be handled in a
better way.
2015-01-04 18:22:05 -08:00