Releases: fjogeleit/http-request-action
Releases · fjogeleit/http-request-action
Single File upload
- Support single file upload as
application/octet-stream
(#37 by nhan-nguyen-se)
Dependency Update
Update follow-redirects
Update NodeJS to v16
Dependency Update
Update axios to 0.21.4
Update form-data to 4.0.0
Ignore StatusCodes
- New option
ignoreStatusCodes
to prevent action to fail if API respond with a configured status code.- Accept a list of StatusCodes as string, e.g. '404,401'
- Creates a warning message to see when a ignoredStatusCode was returned
Build v1.7.2 changes
v1.7.3 Build new version
Disable MaxContentLength and MaxBodyLength checks
FileUpload Content-Type
Remove default contentType from actions.yaml, contentType will set to application/json if not provided anyway
Fix duplicated contentType in file upload requests
File Upload
Related to #19
Add a new property files to support File Uploads over multipart/form-data Request.
Content-Type will change to "multipart/form-data" independent of the provided configuration.
Values provided as JSON in the data property will be added as additional FormData values. Nested objects are not supported
Basic Example from the test Workflow
jobs:
request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create Test File
run: |
echo "test" > testfile.txt
- name: Request Postman Echo POST Multipart
uses: fjogeleit/http-request-action@master
with:
url: 'https://postman-echo.com/post'
method: 'POST'
data: '{ "key": "value" }'
files: '{ "file": "${{ github.workspace }}/testfile.txt" }'
Axios Update
axios update to v0.21.1
None JSON Body support
- Add support for other Body ContentTypes like XML
- Update axios to v0.21.0