<p><b>@kb2ma</b> approved this pull request.</p>

<p>This PR is a straightforward extension of the existing block1 getter (server request handler) to also get block2 (client response handler). Tested block2 by running <a href="https://github.com/kb2ma/riot-apps/tree/kb2ma-master/nano-block-client">block client</a> test app. Confirmed no regression with block1 by running nanocoap server for /sha256 resource.</p>
<p>In coap_get_block(), the blknum and szx variables are not necessary. However, this PR is intended to be a minimal impact stopgap until we merge <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="413842481" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/11057" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/11057/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/11057">#11057</a> in 2019.10, which addresses this issue.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/11802?email_source=notifications&email_token=ABE7WYGOATNI37YFOLIR4TTP6MRCJA5CNFSM4H6LNVK2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB5W2SVY#pullrequestreview-258845015">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYE2PNB2J5JY25Z2N43P6MRCJANCNFSM4H6LNVKQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYGKI2WN7W6ZZUG2IV3P6MRCJA5CNFSM4H6LNVK2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB5W2SVY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/11802?email_source=notifications\u0026email_token=ABE7WYGOATNI37YFOLIR4TTP6MRCJA5CNFSM4H6LNVK2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB5W2SVY#pullrequestreview-258845015",
"url": "https://github.com/RIOT-OS/RIOT/pull/11802?email_source=notifications\u0026email_token=ABE7WYGOATNI37YFOLIR4TTP6MRCJA5CNFSM4H6LNVK2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB5W2SVY#pullrequestreview-258845015",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>