Commit 282f8a80 authored by Benoit Orihuela's avatar Benoit Orihuela
Browse files

feat: add Content-Type support in Retrieve Subscription keyword

parent 9d2639e0
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -746,9 +746,9 @@ Query Subscriptions
    Set Test Variable  ${response}
    Set Test Variable  ${response}


Retrieve Subscription
Retrieve Subscription
    [Arguments]  ${id}   ${accept}=${EMPTY}     ${context}=${EMPTY}
    [Arguments]  ${id}   ${accept}=${EMPTY}     ${context}=${EMPTY}     ${content_type}=${CONTENT_TYPE_LD_JSON} 
    &{headers}=  Create Dictionary


    &{headers}=  Create Dictionary  Content-Type=${content_type}
    Run Keyword If     '${accept}'!=''       Set To Dictionary   ${headers}   Accept    ${accept}
    Run Keyword If     '${accept}'!=''       Set To Dictionary   ${headers}   Accept    ${accept}
    Run Keyword If     '${context}'!=''       Set To Dictionary   ${headers}    Link=<${context}>; rel="http://www.w3.org/ns/json-ld#context";type="application/ld+json"
    Run Keyword If     '${context}'!=''       Set To Dictionary   ${headers}    Link=<${context}>; rel="http://www.w3.org/ns/json-ld#context";type="application/ld+json"