Skip to content

Commit

Permalink
Merge pull request #57 from readyplayerme/release/v2.4.0
Browse files Browse the repository at this point in the history
Release/v2.4.0
  • Loading branch information
rk132 authored Feb 19, 2024
2 parents 9145622 + 64c3d31 commit 81a5758
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [2.4.0] 2024-02-19

## Added

- Add rpm source header to requests by @rk132 in [#56](https://github.com/readyplayerme/rpm-unreal-sdk/pull/56)

## [2.3.0] 2024-01-24

## Fixed
Expand Down
2 changes: 2 additions & 0 deletions Source/RpmAvatarCreator/Private/Requests/BaseRequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace
const FString HEADER_AUTHORIZATION = "Authorization";
const FString HEADER_APP_ID = "X-APP-ID";
const FString HEADER_CONTENT_TYPE = "Content-Type";
const FString HEADER_RPM_SOURCE = "rpm-source";
}

FBaseRequest::FBaseRequest(const TSharedRef<FCancellationDelegate>& CancellationDelegate, const FString& Url, const FString& AuthToken, ERequestVerb RequestVerb, const FString& Payload, float Timeout)
Expand All @@ -41,6 +42,7 @@ void FBaseRequest::Download()
{
DownloadRequest->SetTimeout(Timeout);
}
DownloadRequest->SetHeader(HEADER_RPM_SOURCE, "unreal");
DownloadRequest->SetURL(Url);
if (!AuthToken.IsEmpty())
{
Expand Down

0 comments on commit 81a5758

Please sign in to comment.