Open Xample opened 1 week ago
Hello, unlike json request which should be typed properly, the "blob" responseType should have a "Blob" resultType.
the resultType must be "Blob" (PascalCase) if the responseType is a "blob" (lowercase).
I can imagine this possible 2 lines fix:
this.responseType = this.inferResponseType(successResponse, operation, options); this.resultType = this.responseType === "blob" ? "Blob" : successResponse.type;
Hello, unlike json request which should be typed properly, the "blob" responseType should have a "Blob" resultType.
the resultType must be "Blob" (PascalCase) if the responseType is a "blob" (lowercase).
I can imagine this possible 2 lines fix: