Skip to content

Commit

Permalink
updates dependency to requests:1.4.0
Browse files Browse the repository at this point in the history
- fixes: headers-fail-to-send bugs
- fixes: typo on repo url in package.json
  • Loading branch information
beatthat committed May 20, 2020
1 parent fa652a1 commit 3cb0129
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
11 changes: 5 additions & 6 deletions Runtime/request-disposables/WebDisposableTextureRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ public WebDisposableTextureRequest(string url = null, HttpVerb verb = HttpVerb.G
public object GetItem() { return this.item; }
public Disposable<Texture2D> item { get; protected set; }

override public void Prepare()
override protected UnityWebRequest PrepareRequest()
{
base.Prepare();

this.downloadHandler = new DownloadHandlerTexture(); //StaticObjectPool<DownloadHandlerTexture>.Get();

this.www.downloadHandler = this.downloadHandler;
var req = base.PrepareRequest();
this.downloadHandler = new DownloadHandlerTexture();
req.downloadHandler = this.downloadHandler;
return req;
}

virtual public void Execute(Action<Request<Disposable<Texture2D>>> callback)
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/beatthat/request-disposable.git"
"url": "git+https://github.com/beatthat/request-disposables.git"
},
"files": [
"index.js",
Expand All @@ -18,9 +18,9 @@
"author": "larrykirschner@gmail.com",
"license": "MIT",
"bugs": {
"url": "https://github.com/beatthat/request-disposable/issues"
"url": "https://github.com/beatthat/request-disposables/issues"
},
"homepage": "https://github.com/beatthat/request-disposable",
"homepage": "https://github.com/beatthat/request-disposables",
"scripts": {
"postinstall": "node scripts/postinstall.js",
"clean": "rm -f *.tgz package-lock.json && cd test && npm run clean",
Expand All @@ -43,7 +43,7 @@
"dependencies": {
"path": "^0.12.7",
"unity-npm-utils": "github:beatthat/unity-npm-utils#semver:^1.0.0",
"requests": "beatthat/requests#semver:^1.0.0",
"requests": "beatthat/requests#semver:^1.4.0",
"disposables": "beatthat/disposables#semver:^1.0.0"
},
"devDependencies": {},
Expand Down

0 comments on commit 3cb0129

Please sign in to comment.